#include "mainwindow.h"
#include "movewidget.h"
#include "QPushButton"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    resize(800, 400);

    QPushButton *btn1 = new QPushButton(this);
    btn1->setGeometry(10, 10, 250, 250);
    btn1->setText("btn1");

    MoveWidget *moveWidget1 = new MoveWidget(this);
    moveWidget1->setWidget(btn1);

    QPushButton *btn2 = new QPushButton(this);
    btn2->setGeometry(10, 40, 250, 250);
    btn2->setText("btn2");

    MoveWidget *moveWidget2 = new MoveWidget(this);
    moveWidget2->setWidget(btn2);
    moveWidget2->setLeftButton(false);

    QPushButton *btn3 = new QPushButton(this);
    btn3->setGeometry(10, 70, 250, 250);
    btn3->setText("btn3");

    MoveWidget *moveWidget3 = new MoveWidget(this);
    moveWidget3->setWidget(btn3);
    moveWidget3->setControl(false);
}

MainWindow::~MainWindow()
{

}
